import QtQuick 2.15
import QtQuick.Controls 2.2
import QtQuick.Window 2.15

Window
{
    id: mainWindow
    width: 840
    height: 480
    visible: true
    title: qsTr("Hello World")

    BaseToast
    {
        id: _toast
    }

    Row
    {
        width: parent.width
        height: 30
        spacing: 10
        Button
        {
            text: "Success"
            onClicked: {
                _toast.showSuccess("Welcome to toast success ",4000,"No discord, no concord.")
            }
        }
        Button
        {
            text: "Warning"
            onClicked: {
                _toast.showWarning("Welcome to toast warning",2000,"")
            }
        }
        Button
        {
            text: "Info"
            onClicked: {
                _toast.showWarning("Welcome to toast Info",2000,"")
            }
        }
        Button
        {
            text: "Error"
            onClicked: {
                _toast.showWarning("Welcome to toast Error",3000,"")
            }
        }
    }
}
